package com.jmyd.coupon.server.mapper;

import com.jmyd.coupon.server.domain.po.SceneCouponDrawRecord;
import com.jmyd.coupon.server.domain.vo.SceneCouponDrawRecordVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author samphin
 * @since 2021/7/14 16:20
 */
public interface SceneCouponDrawRecordMapper extends Mapper<SceneCouponDrawRecord> {
    int batchInsert(@Param("list") List<SceneCouponDrawRecord> list);

    int insertOrUpdate(SceneCouponDrawRecord record);

    int insertOrUpdateSelective(SceneCouponDrawRecord record);

    List<SceneCouponDrawRecordVo> selectList(@Param("couponName") String couponName, @Param("couponCode") String couponCode, @Param("userId") String userId);
}